package com.limao.push;

public enum PushTypeEnum {
	
	webType("web",0),				//网页, 网页版购物平台, 后台管理平台
	buyertype("buyer",1),			//终端客户
	shoptype("shop",2),				//商家
	courierType("courier",3),		//区内派送员
	employeetype("employeer",4);	//片区长
	
	private String stringValue;
	private int intVlue;

	private PushTypeEnum(String stringValue) {
		this.stringValue = stringValue;
	}

	private PushTypeEnum(int intVlue) {
		this.intVlue = intVlue;
	}

	private PushTypeEnum(String stringValue, int intVlue) {
		this.stringValue = stringValue;
		this.intVlue = intVlue;
	}

	public String getStringValue() {
		return stringValue;
	}

	public int getIntVlue() {
		return intVlue;
	}

	public static PushTypeEnum getEnum(int i) {
		for (PushTypeEnum c : PushTypeEnum.values()) {
			if (c.getIntVlue() == i) {
				return c;
			}
		}
		return null;
	} 
}
